﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.ComponentModel.DataAnnotations;

namespace FeaturePlusInWeb.Model
{
    /// <summary>
    /// 普通一般推荐位
    /// </summary>
    public class FeaturedPlus
    {
        //[Required]
        [Display(Name = "ID", Description = "唯一标识符", Order = 0)]
        public string Id
        {
            get;
            set;
        }
        [Required]
        [Display(Name = "标题", Description = "文章的标题", Order = 1)]
        public string Title
        {
            get;
            set;
        }
        [Display(Name = "图片地址", Description = "也可是flash", Order = 2)]
        public string PicLink
        {
            get;
            set;
        }

        [Display(Name = "摘要", Description = "文章的摘要", Order = 3)]
        public string Description
        {
            get;
            set;
        }

        [Display(Name = "连接地址", Description = "连接地址", Order = 4)]
        public string UrlLink
        {
            get;
            set;
        }

        [Display(Name = "发布时间", Description = "扩充字段", Order = 5)]
        public string Pubdate//发布时间 (由客户端决定显示形式)
        {
            get;
            set;
        }

        [Display(Name = "扩充字段1", Description = "扩充字段", Order = 6)]
        public string AddField1//发布时间 (由客户端决定显示形式)
        {
            get;
            set;
        }

        [Display(Name = "扩充字段2", Description = "扩充字段", Order = 7)]
        public string AddField2// (由客户端决定显示形式)
        {
            get;
            set;
        }

        [Display(Name = "扩充字段3", Description = "扩充字段", Order = 8)]
        public string AddField3// (由客户端决定显示形式)
        {
            get;
            set;
        }

        [Display(Name = "扩充字段4", Description = "扩充字段", Order = 9),DataType(System.ComponentModel.DataAnnotations.DataType.Time)]
        public string AddField4// (由客户端决定显示形式)
        {
            get;
            set;
        }
    }
}
